<template>
  <div id="app">
    <span class="row-item" v-for="font in fonts" :key="font">
      <div class="row-item--font">
        <i :class="font"></i>
      </div>
      <div>{{ font }}</div>
    </span>
  </div>
</template>

<script>
import fonts from "./index";

export default {
  data() {
    return {
      fonts,
    };
  },
};
</script>

<style>
body {
  margin: 0;
}
#app {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
}
.row-item--font {
  width: 120px;
  height: 60px;
  background: #eaeaea;
  margin: auto;
  line-height: 60px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.row-item--font i {
  font-size: 32px;
  color: #999;
}
.row-item {
  display: inline-block;
  text-align: center;
  width: 160px;
  color: #333;
  font-size: 14px;
  margin-bottom: 20px;
}
</style>
